﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAO;
using BUS;

namespace FDeal
{
    public partial class ChiTietSanPham : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string iddeal = Request.QueryString["id"].ToString();

                ChiTietDealBUS chitietDeal = new ChiTietDealBUS();
                CHITIETDEAL kq = chitietDeal.ChiTiet(iddeal);

                TieuDe.Text = kq.TIEUDE;
                GiaConLai.Text = kq.GIACONLAI.ToString();
                GiaGoc.Text = kq.GIAGOC.ToString();
                ImageSanPham.ImageUrl = "~/images/anhsanpham/" + kq.HINHANH;
                TomTat.Text = kq.TOMTATDEAL;

                ImageButton1.PostBackUrl += iddeal;
            }
        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {      
     
        }
    }
}